package com.dyh.quickdemo.demos.ddyDemos;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/*
@Author=Joey Wheeler
@Date=2020/10/13 14:07
*/
@Configuration
public class DdyUrlConf {

    /*oms.duoduoyun.baseUrl*/
    @Bean
    @ConfigurationProperties(prefix="oms.duoduoyun")
    public DdyUrlBean ddyUrlBean(){
        return new DdyUrlBean();
    }

    //@Bean(initMethod = "init")
    @Bean//#不配不会报错
    @ConfigurationProperties(prefix = "oms.duoduoguoji")
    public DuoduoguojiAppkeyBean duoduoguojiAppkeyBean(){
        return new DuoduoguojiAppkeyBean();
    }

}
